package icu.ikuns.hungry;

/**
 * @Author： Kimariyb
 * @Date：2022/05/26/14:23
 * @Description：
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("性能测试开始！");
        Single instance1 = Single.getInstance();
        Single instance2 = Single.getInstance();

        System.out.println(instance1.hashCode());
        System.out.println(instance2.hashCode());

        if (instance1 == instance2) {
            System.out.println("两个实例是相同的！");
        } else {
            System.out.println("两个实例不相同！");
        }
    }
}
